package IO流;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class 对象序列化输入 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("file文件夹\\对象.txt"));
            Student s1 = (Student) ois.readObject();
            Student s2 = (Student) ois.readObject();
        System.out.println(s1);
        System.out.println(s2);
        ois.close();
    }
}
